/*
 * @Author: 'yangyuhang1203' '2621131059@qq.com'
 * @Date: 2025-07-17 09:37:04
 * @LastEditors: 'yangyuhang1203' '2621131059@qq.com'
 * @LastEditTime: 2025-07-17 09:47:28
 * @FilePath: \企业级\Day04\Test02.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//强制类型转换
public class Test02{
        public static void main(String[] args)
    {
        float f1=(float)3.14;
        float f2=3.14F;
        System.out.println("f1:"+f1);
        System.out.println("f2:"+f2);
        int i=(int)3.14;
        System.out.println("i:"+i);
        int i1=(int)3.54;
        System.out.println("i1:"+i1);
        byte b1=10;
        short s1=5;
        double d2=2.3;
        //(b1-5)*s1+d2
        double r=(b1-5)*s1+d2;
        System.out.println("r:"+r);
        //特殊情况
        byte byte1=10;
        
    }
}